<template>
  <div>
    <h2>==子组件接受父组件参数==</h2>
    <ul class="js_ul">
    </ul>
  </div>
</template>
<script>
  export default function($) {
    $.on('list', (list) => {
      render(list);
    });

    function render(list) {
      var html = '';
      list.forEach(function(item) {
        html += `<li>${item.name}</li>`;
      });
      $(".js_ul").html(html);
    }
  }
</script>
<style>
  
</style>